<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

// Route::get('/', function () {
//     echo date('Y-m-d H:i:s');
//     return view('welcome');
// });


// Route::get('/m', 'admins\Member@get');

// Route::get('/a/b',function(){
//     return "hello superhan";
// });

// Route::get('/captcha','admins\Home@captcha');

// Route::get('/login','admins\Home@login');

// Route::post('/dologin','admins\Home@doLogin');
// Route::get('/main','admins\Home@main');


Route::get('/admins/account/login','admins\Account@login')->name('login');

Route::get('/admins/account/captcha','admins\Account@captcha');

Route::post('/admins/account/dologin','admins\Account@dologin');

Route::get("/admins/home/index",'admins\Home@index');

Route::get('/admins/home/welcome','admins\Home@welcome');

// 账号列表
Route::get("/admins/admin/index",'admins\Admin@index')->middleware('auth');
Route::get("/admins/admin/add","admins\Admin@add")->middleware('auth');
// 提交管理员数据
Route::post("/admins/admin/save","admins\Admin@save")->middleware("auth");
// 账号分组
Route::get("/admins/group/index","admins\Group@index")->middleware("auth");
// 权限菜单
Route::get("/admins/menus/index","admins\Menus@index")->middleware('auth');
// 友情链接
Route::get("/admins/setting/friend_link","admins\Setting@friend_link");
